﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8" />
    <title>系统日志</title>
    <script src="../../Scripts/bootstrap/bootstrap-table/src/bootstrap-table.js"></script>
    <link href="../../Scripts/bootstrap/css/bootstrap.css" rel="stylesheet" />
    <link href="../../Scripts/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="../../Scripts/bootstrap/css/style.min.css" rel="stylesheet" />
    <link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
    <script src="../../Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../../Scripts/config.js" type="text/javascript"></script>
    <script src="../Gener.js" type="text/javascript"></script>
    <script src="../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../Scripts/bootstrap/js/jquery.min.js"></script>
    <script src="../../Scripts/config.js" type="text/javascript"></script>
    <link href="../../Scripts/easyUI/themes/gray/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/easyUI/themes/icon.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery.easyui.min.js" type="text/javascript"></script>
    <base target="_self" />
    <style type="text/css">
        th {
            background-color: #F5F5F6;
        }
    </style>
    <script language="javascript" type="text/javascript">
        //页面启动函数.
        $(function () {

            $("#Msg").html("<img src=../../Img/loading.gif />&nbsp;正在加载,请稍后......");

            var handler = new HttpHandler("BP.WF.HttpHandler.WF_Comm_Sys");
            var data = handler.DoMethodReturnJSON("SystemLog_Init");

            var html = "<table class='table  table-hover' border=0 style='width:98%;' id='tab'>";
            html += "<tr>";
            html += "<th>序号</th>";
            html += "<th>文件</th>";
            html += "<th>类型</th>";
            html += "</tr>";

            for (var i = 0; i < data.length; i++) {
                var en = data[i];
                html += "<tr>";
                html += "<td>" + i + "</td>";
                html += "<td><a href=\"javascript:OpenIt('" + en.No + "','" + en.LogType + "');\" >" + en.No + "</a></td>";

                html += "<td>" + en.LogType + "</td>";

                html += "</tr>";
            }
            $("#Msg").html(html);

        });

        function OpenIt(no,logType)
        {
            var handler = new HttpHandler("BP.WF.HttpHandler.WF_Comm_Sys");
            handler.AddPara("RefNo", no);
            handler.AddPara("LogType", logType);
            var data = handler.DoMethodReturnString("SystemLog_Open");
            $("#info").html(data);
        }

    </script>
</head>
<body style="padding: 15px; margin: 15px;">
    <form id="cc">

        <div style="float: left">
            <h4>&nbsp;&nbsp;&nbsp;系统日志</h4>
        </div>

        <div style="padding: 10px;" id="Msg">
            <img src="../../Img/loading.gif" />&nbsp;正在加载,请稍后......
        </div>
        <div id="info">

        </div>
    </form>
</body>
</html>
